package reflect;

/**
 * 单例模式
 * */
public class Singleton {
    private static Singleton instance = new Singleton();
    private String describe = "单例模式";

    private Singleton() {}

    public static Singleton getInstance() {
        return instance;
    }

    public void show() {
        System.out.println(describe);
    }
}
